package com.lottemall.item.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 库存表，代表库存，秒杀库存等信息
 */
@Table(name = "tb_stock")
@Data
public class Stock {

    @Id
    private Long skuId; //具体的商品id
    private Integer seckillStock;// 秒杀可用库存
    private Integer seckillTotal;// 已秒杀数量
    private Long stock;// 正常库存
}
